QT += \ 
    core          \
    gui           \
    dbus          \
    printsupport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
include ($$PWD/kylinimagecodec/kylinimagecodec.pro)
TEMPLATE = app

LIBS += -lpthread

# 配置gsettings
CONFIG += link_pkgconfig
PKGCONFIG += gsettings-qt 


CONFIG += \
    c++11

INCLUDEPATH += $$PWD/kylinimagecodec


TARGET = kylin-photo-printer
TRANSLATIONS = $$PWD/translations/kylin-photo-printer_en.ts \
               $$PWD/translations/kylin-photo-printer_zh_CN.ts

target.path += /usr/bin
target.source += $$target
schemes.path += /usr/share/glib-2.0/schemas/
schemes.files += $$PWD/data/org.kylin.photo.printer.gschema.xml
translationsFiles.path = /usr/share/kylin-photo-printer/translations/
translationsFiles.files += $$PWD/translations/*.qm

INSTALLS += \
    target  \
    schemes \
    translationsFiles

INCLUDEPATH += \
    $$PWD/.

SOURCES += \
# common
    $$PWD/photo_printer.cpp \
    $$PWD/main.cpp

HEADERS += \
# common
    $$PWD/photo_printer.h